import WoundClosure
from frontend.roleApplication import RoleApplication
from frontend.form import Type

class NurseApplication(RoleApplication):
 
    def __init__(self):
        super(NurseApplication, self).__init__("Team1OR", "Nurse") 
        self.register_transition_step("HandInstrument", self.instrument_handed_form_creator,name_fields=["sequence","PatientName","InstrumentName","InstrumentNumber"]) 
        self.register_transition_step("WoundClosure", self.create_wound_closure_form, name_fields=["sequence","PatientName"]) 

    def instrument_handed_form_creator(self, stepname, form):
        form.add_static_label('Instrument has been handed.') 
        
    def create_wound_closure_form(self, stepname, form):
        WoundClosure.create_wound_closure_form(self,stepname,form)
    


if __name__ == '__main__':
    app = NurseApplication()
    app.MainLoop()